package com.risenb.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import com.risenb.bean.LoginLog;

public interface LoginLogMapper {
	
    int removeLoginLogById(Integer id);

    int createLoginLog(LoginLog record);

    LoginLog queryLoginLogById(Integer id);

    int modifyLoginLogById(LoginLog record);

    @Select("select * from loginlog where userid = #{uid} order by createtime desc limit 10")
    @ResultType(LoginLog.class)
    List<LoginLog> queryTen(@Param("uid")Integer uid);
    
}